package com.fy.common.enums;

import lombok.AccessLevel;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * 消息推送设置
 * @author cjq
 */
@Getter
@RequiredArgsConstructor(access = AccessLevel.PRIVATE)
public enum RemindSettingType {
    /*BC Talk关闭时*/
    NEW_MESSAGE_REMIND("newMessageRemind", 1),  //新消息提醒
    VOICE_AND_VIDEO_CHAT_REMIND("voiceAndVoiceChatRemind", 2),  //语音和视频消息提醒
    SHOW_MESSAGE_DETAILS("showMessageDetails", 3),  //通知显示消息详情

    /*BC Talk打开时*/
    MESSAGE_SHAKE("messageShake", 4),  //消息震动
    MESSAGE_MUTE("messageMute", 5),  //消息静音
    OTHERS("others", 99);  //其他

    private final String value;
    private final int type;

    public static String getValue(int type){
        for (RemindSettingType enums : RemindSettingType.values()) {
            if (type == enums.getType()){
                return enums.getValue();
            }
        }
        return "others";
    }

}
